
function Item(){
}
Item.computeItemCount=function(itemInfo,num){
    itemInfo.count+=num;
    return  itemInfo
}
Item.computeCostPrice=function(itemInfo){
    var costPrice= itemInfo.count*itemInfo.price;
    itemInfo.costPrice=costPrice;
    return itemInfo
}